package com.dupengcheng.subject.domain.convert;

import com.dupengcheng.subject.domain.entity.SubjectInfoBO;
import com.dupengcheng.subject.domain.entity.SubjectOptionBO;
import com.dupengcheng.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoBOConvert {
    
    SubjectInfoBOConvert INSTANCE= Mappers.getMapper(SubjectInfoBOConvert.class);


    SubjectInfo convertBOtoInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> convertInfoListToBOList(List<SubjectInfo> subjectInfos);

    SubjectInfoBO convertOptionAndInfoToBO(SubjectInfo subjectInfo, SubjectOptionBO query);
}
